package com.src.iseclive.di.module;


import com.src.iseclive.di.component.BaseActivityComponent;
import com.src.iseclive.di.socpe.ActivityScope;
import com.src.iseclive.mvp.view.implement.activity.MainActivity;
import com.src.iseclive.mvp.view.implement.activity.SecondActivity;

import javax.inject.Singleton;

import dagger.Module;
import dagger.android.ContributesAndroidInjector;

/**
 * @author liujiancheng
 * @name IsecLive
 * @class name：com.src.isec.di.module
 * @class ActivityModule注入容器的集合
 * 所有Activity的Module可以在此类声明注入,Moudle提供的Provides必须为静态方法
 * @time 2018/3/19 9:08
 * @change
 * @chang time
 * @class describe
 */
@Module(subcomponents = {BaseActivityComponent.class})
public abstract class AllActivitysModule {

    @ActivityScope
    @ContributesAndroidInjector
    abstract MainActivity contributeMainActivitytInjector();


    @ActivityScope
    @ContributesAndroidInjector
    abstract SecondActivity contributeSecondActivitytInjector();
}
